虚拟机安装openwrt只需10分钟

您所在的位置:网站首页 openwrt安装docker no key 虚拟机安装openwrt只需10分钟

虚拟机安装openwrt只需10分钟

2023-07-24 20:49| 来源: 网络整理| 查看: 265

虚拟机安装openwrt只需10分钟

本篇介绍openwrt软件在虚拟机中的快速安装。

下载镜像,20秒:wget https://downloads.openwrt.org/releases/19.07.4/targets/x86/generic/openwrt-19.07.4-x86-generic-combined-ext4.img.gz

[root@HK-myzdl ~]# wget https://downloads.openwrt.org/releases/19.07.4/targets/x86/generic/openwrt-19.07.4-x86-generic-combined-ext4.img.gz --2020-09-13 17:24:30-- https://downloads.openwrt.org/releases/19.07.4/targets/x86/generic/openwrt-19.07.4-x86-generic-combined-ext4.img.gz Resolving downloads.openwrt.org (downloads.openwrt.org)... 176.9.48.73, 2a01:4f8:150:6449::2 Connecting to downloads.openwrt.org (downloads.openwrt.org)|176.9.48.73|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 8414308 (8.0M) [application/octet-stream] Saving to: ‘openwrt-19.07.4-x86-generic-combined-ext4.img.gz’ 100%[==========================================================================>] 8,414,308 4.21MB/s in 1.9s 2020-09-13 17:24:33 (4.21 MB/s) - ‘openwrt-19.07.4-x86-generic-combined-ext4.img.gz’ saved [8414308/8414308]

解压文件,10秒:

[root@HK-myzdl ~]# gzip -vd openwrt-19.07.4-x86-generic-combined-ext4.img.gz openwrt-19.07.4-x86-generic-combined-ext4.img.gz: 97.1% -- replaced with openwrt-19.07.4-x86-generic-combined-ext4.img

安装镜像格式转换工具qemu,并将IMG格式转换vmdk格式,30秒:

[root@HK-myzdl ~]# yum install qemu-img -y [root@HK-myzdl ~]# qemu-img convert -f raw -O vmdk openwrt-19.07.4-x86-generic-combined-ext4.img openwrt-19.07.4-x86-generic-combined-ext4.vmdk [root@HK-myzdl ~]# ls openwrt-19.07.4-x86-generic-combined-ext4.img openwrt-19.07.4-x86-generic-combined-ext4.vmdk

导出镜像文件到桌面,30秒:

[root@HK-myzdl ~]# sz openwrt-19.07.4-x86-generic-combined-ext4.vmdk

新建虚拟机等加载镜像登录8分钟: 在这里插入图片描述 在这里插入图片描述 在这里插入图片描述 在这里插入图片描述 在这里插入图片描述 在这里插入图片描述



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3